package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户三方登录表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-06-12
 */
@TableName("wz_user_oauth")
public class WzUserOauth extends Model<WzUserOauth> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String nickName;
    /**
     * 性别:1-男性，2-女性
     */
    private Integer gender;
    /**
     * 用户头像
     */
    @TableField("avatar_url")
    private String avatarUrl;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 平台：1-微信，2-支付宝，3-qq
     */
    private Integer paltform;
    /**
     * 支付宝用户的userId
     */
    @TableField("alipay_user_id")
    private String alipayUserId;
    /**
     * openid
     */
    private String openid;
    /**
     * 状态：1-正常
     */
    private Integer status;
    /**
     * unionid
     */
    private String unionid;
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Integer getPaltform() {
        return paltform;
    }

    public void setPaltform(Integer paltform) {
        this.paltform = paltform;
    }

    public String getAlipayUserId() {
        return alipayUserId;
    }

    public void setAlipayUserId(String alipayUserId) {
        this.alipayUserId = alipayUserId;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzUserOauth{" +
        "id=" + id +
        ", nickName=" + nickName +
        ", gender=" + gender +
        ", avatarUrl=" + avatarUrl +
        ", userCode=" + userCode +
        ", paltform=" + paltform +
        ", alipayUserId=" + alipayUserId +
        ", openid=" + openid +
        ", status=" + status +
        ", unionid=" + unionid +
        ", createTime=" + createTime +
        "}";
    }
}
